// const str = `name`
// console.log(str)

// const html = `
// <p>1</p>
// <p>2</p>
// <p>3</p>
// `
// console.log(html)

// const name = 'xiaoming'
// console.log(`hello ${name + '!'}`)

const name = 'xiaoming'
const gender = true
function myTagFunc(strs,name,gender){
  // 模板字符串按照表达式分隔后，的静态内容
  console.log(strs) //  [ 'hey, ', ' is a ', '' ]
  console.log(name,gender) // xiaoming true
  return '123' // 模板字符串的值
}
const result = myTagFunc `hey, ${name} is a ${gender}`
console.log(result) // 123
